package flex.cc.fenfa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import flex.cc.fenfa.dao.RuleChannelDao;
import flex.cc.fenfa.dto.RuleChannelEntity;
import flex.cc.fenfa.service.RuleChannelService;

/**
*
* @author WANGCONG
* 2021年10月14日下午4:26:08
* @desc 规则对应渠道商实现层
*/
@Service("ruleChannelService")
@Transactional(rollbackFor = Exception.class)
public class RuleChannelServiceImpl implements RuleChannelService {

	@Resource
	private RuleChannelDao ruleChannelDao;

	/**
	*
	* @author WANGCONG
	* 2021年10月14日下午4:57:12
	* @desc 批量插入
	*/
	@Override
	public void insertBatch(List<RuleChannelEntity> channelList) {
		ruleChannelDao.insertBatch(channelList);
	}

	/**
	*
	* @author WANGCONG
	* 2021年10月14日下午5:59:52
	* @desc 根据规则Id删除
	*/
	@Override
	public void delByRuleId(String ruleId) {
		ruleChannelDao.delByRuleId(ruleId);
	}
	
}
